package com.sinping.qh.service.app.records;

import com.sinping.qh.api.support.FrontPage;
import com.sinping.qh.dto.app.records.CheckPlanByAppDTO;
import com.sinping.qh.dto.common.ICommonDTO;

import java.util.List;

/**
 * @author zhangjin
 * @create 2018/5/29
 */
public interface ICheckPlanService {

    /**
     * 验证检查计划
     * @param checkPlanByAppDTO
     * @param iCommonDTO
     * @return
     */
    String preValidCheck(CheckPlanByAppDTO checkPlanByAppDTO, ICommonDTO iCommonDTO);

    /**
     * 保存检查计划
     * @param checkPlanByAppDTO
     * @param iCommonDTO
     * @return
     */
    CheckPlanByAppDTO save(CheckPlanByAppDTO checkPlanByAppDTO, ICommonDTO iCommonDTO);

    /**
     * 分页查询
     * @param frontPage
     * @return
     */
    FrontPage findPage(FrontPage frontPage, ICommonDTO iCommonDTO);

    /**
     * 不分页，离线查询检查计划
     * @param iCommonDTO
     * @return
     */
    CheckPlanByAppDTO findPlanOffLine(String planId,ICommonDTO iCommonDTO);

    CheckPlanByAppDTO findOne(String id);


    boolean delete(String id);

    CheckPlanByAppDTO update(CheckPlanByAppDTO checkPlanByAppDTO,ICommonDTO iCommonDTO);

}
